package com.guanzi.big_data_mq_process.model.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author 管子
 * @date 2025/6/13 21:19
 * @description: UserOrderBO 类
 */
@Data
public class UserOrderBO {

    @ExcelProperty(value = "用户ID", index = 0)
    private Integer userId;

    @ExcelProperty(value = "用户名称", index = 1)
    private String userName;

    @ExcelProperty(value = "用户邮箱", index = 2)
    private String userEmail;

    @ExcelProperty(value = "订单ID", index = 3)
    private Integer orderId;

    @ExcelProperty(value = "订单日期", index = 4)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderDate;

    @ExcelProperty(value = "总金额", index = 5)
    private BigDecimal totalAmount;

}
